<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Group;
use App\Models\Member;
use Illuminate\Http\Request;

class MemberController extends Controller {


    //列表
    public function index(Request $request){
        $params = [
            'kwd'    => (string)$request->get('kwd',''),
            'mobile' => (string)$request->get('mobile',''),
            'uid' => (int)$request->get('uid',0),
        ];
        $lists = Member::getList($params);
        return $this->writeJson(0,$lists);
    }

//    //所有角色
//    public function gruop(){
//        $groups = Group::groups();
//        return $this->writeJson(0,$groups);
//    }



}
